<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
    [
        '<div contenteditable>',
            'a<span style="white-space:pre">|\t\t\t</span>z',
        '</div>',
    ],
    'insertText X',
    [
        '<div contenteditable>',
            'aX|<span style="white-space:pre">\t\t\t</span>z',
        '</div>',
    ],
    'Insert text at tab span');
</script>
